package 字节码文件.分析;

import sun.applet.Main;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO:
 * <P> Date: 2022/3/25:21:27
 * <P> Description:
 */

public class Test {

    public static  int k = 0;//0
    static Test t1 = new Test("t1");//1
    public static  Test t2 = new Test("t2");
    public static  int i = print("i");//i=5
    public static int n = 99;//n=99

    public int j = print("j");//j=1


    public Test(String str){
       //k=2 k=4 k=7
        System.out.println((++k) + ":" + str);
        ++i;//i = 2 i=4 i=7
        ++n;//n=2 n=4 n=101
    }

    public static int print(String str){
        // k=1 k=3  k=5 k=6
        System.out.println((++k) + ":" + str);
        ++n;//n=1 n=3 n=5 n=100
        return ++i;//i=1 i=3 i=5 i=6
    }

    public static void main(String[] args) {
        new Test("init");
        System.out.println(Test.i);
        System.out.println(Test.k);

    }

}
